package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CgzxChkbillMesTMapper;
import com.ruoyi.system.domain.CgzxChkbillMesT;
import com.ruoyi.system.service.ICgzxChkbillMesTService;
import com.ruoyi.common.support.Convert;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;


/**
 * 专检任务结果(城轨轴箱) 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-22
 */
@Service
public class CgzxChkbillMesTServiceImpl implements ICgzxChkbillMesTService 
{
	@Autowired
	private CgzxChkbillMesTMapper cgzxChkbillMesTMapper;

	/**
     * 查询专检任务结果(城轨轴箱)信息
     * 
     * @param gid 专检任务结果(城轨轴箱)ID
     * @return 专检任务结果(城轨轴箱)信息
     */
    @Override
    @DataSource(value = DataSourceType.SLAVE)
	public CgzxChkbillMesT selectCgzxChkbillMesTById(String gid)
	{
	    return cgzxChkbillMesTMapper.selectCgzxChkbillMesTById(gid);
	}
	
	/**
     * 查询专检任务结果(城轨轴箱)列表
     * 
     * @param cgzxChkbillMesT 专检任务结果(城轨轴箱)信息
     * @return 专检任务结果(城轨轴箱)集合
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public List<CgzxChkbillMesT> selectCgzxChkbillMesTList(CgzxChkbillMesT cgzxChkbillMesT)
	{
	    return cgzxChkbillMesTMapper.selectCgzxChkbillMesTList(cgzxChkbillMesT);
	}
	
    /**
     * 新增专检任务结果(城轨轴箱)
     * 
     * @param cgzxChkbillMesT 专检任务结果(城轨轴箱)信息
     * @return 结果
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public int insertCgzxChkbillMesT(CgzxChkbillMesT cgzxChkbillMesT)
	{
	    return cgzxChkbillMesTMapper.insertCgzxChkbillMesT(cgzxChkbillMesT);
	}
	
	/**
     * 修改专检任务结果(城轨轴箱)
     * 
     * @param cgzxChkbillMesT 专检任务结果(城轨轴箱)信息
     * @return 结果
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public int updateCgzxChkbillMesT(CgzxChkbillMesT cgzxChkbillMesT)
	{
	    return cgzxChkbillMesTMapper.updateCgzxChkbillMesT(cgzxChkbillMesT);
	}

	/**
     * 删除专检任务结果(城轨轴箱)对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public int deleteCgzxChkbillMesTByIds(String ids)
	{
		return cgzxChkbillMesTMapper.deleteCgzxChkbillMesTByIds(Convert.toStrArray(ids));
	}
	
}
